<?php
class battle{
    public function __construct(fighter $a,  fighter $b)
    {
        $this->fighterA=$a;
        $this->fighterB=$b;
        
    }
    
    private $fighterA,$fighterB;
    private $seed;
    private $log=array();


    public function fight(){
    
        $turn=0;
        while(
                  0<$this->fighterA->hp
              &&  0<$this->fighterB->hp
              && $turn < 10
        ){
            //どっちかが生きている限り
            $first=$this->fighterA;
            
            
            
            $turn++;
        }
        
        
        return;
    }
    
    
    
    
    
}